<template>
    <div class="pic-card">
        <el-card :body-style="{ padding: '0px' }" shadow="hover">
            <!--            <img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image" alt="">-->
            <el-image
                style="height: 210px"
                fit="contain"
                :src="picItem.url"
                :preview-src-list="picItem.previewList">
            </el-image>
            <div style="padding: 14px;">
                <span class="title">{{ picItem.title }}</span>
                <div class="aside clearfix">
                    <span>
                        <el-skeleton/>
                    </span>
                </div>
            </div>
        </el-card>
    </div>
</template>

<script>
export default {
    name: "PicCard",
    props: ["picItem"],
    data() {
        return {
            // url: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png",
            // url: require("C:/Users/HalfCat/Pictures/9208ef0f3e6590dbafa0739009a6bb06e15a64e46424e796d74fabc29f57daf3.jpg"),
            // previewList: ["https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"]
        }
    }
}
</script>

<style scoped>

.el-card__body > .el-image {
    float: left;
    margin: 5px 15px 5px 5px;
}

.el-card__body > div {
    float: left;
}

.title {
    font-family: "happy", serif;
    font-weight: bolder;
    font-size: 45px;
}

</style>
